package com.gin.kotlin.no_gay_alliance.database.entity

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.fasterxml.jackson.annotation.JsonProperty
import kotlinx.parcelize.Parcelize

/**
 * 额外的屏蔽用户
 * @property userId 用户ID
 * @property username 用户名(不用来匹配)
 * @property remark 备注/描述
 * @constructor
 */
@Entity
@Parcelize
data class BanUser(
    @PrimaryKey
    @set:JsonProperty("uid")
    @get:JsonProperty("uid")
    var userId: Long = 0,
    @set:JsonProperty("name")
    @get:JsonProperty("name")
    var username: String? = null,
    @set:JsonProperty("desc")
    @get:JsonProperty("desc")
    var remark: String? = null,
) : Parcelable
